package com.example.survey23.service.impl;

import com.example.survey23.entity.AnswerBankMultiple;
import com.example.survey23.mapper.AnswerBankMultipleMapper;
import com.example.survey23.service.AnswerBankMultipleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 23Group
 * @since 2022-11-10
 */
@Service
public class AnswerBankMultipleServiceImpl extends ServiceImpl<AnswerBankMultipleMapper, AnswerBankMultiple> implements AnswerBankMultipleService {
    @Autowired
    AnswerBankMultipleMapper answerBankMultipleMapper;
    public int getMaxMId(){
        return answerBankMultipleMapper.getMaxMId();
    }

    public List<AnswerBankMultiple> getMutipleOptions(Integer id){
        return answerBankMultipleMapper.getMutipleOptions(id);
    }



}
